package cn.com.thingo.shyintelligent.model.http;


import cn.com.thingo.shyintelligent.model.bean.CommonBean;
import cn.com.thingo.shyintelligent.model.bean.GatewayListBean;
import cn.com.thingo.shyintelligent.model.bean.LoginBean;
import cn.com.thingo.shyintelligent.model.bean.MessageListBean;
import cn.com.thingo.shyintelligent.model.bean.UserBean;
import io.reactivex.Flowable;
import okhttp3.MultipartBody;
import okhttp3.RequestBody;

/**
 * Created by Administrator on 2017/10/9.
 */

public interface HttpHelper {

    //获取手机验证码
    Flowable<CommonBean> getCode(String telephone);

    //注册
    Flowable<CommonBean> register(String code, String password, String telephone);

    //登录
    Flowable<LoginBean> login(String password, String telephone);

    //网关列表
    Flowable<GatewayListBean> gatewayList(String token);

    //添加网关
    Flowable<CommonBean> addGateway(String username, String password, String number, String title, String token);

    //获取个人信息
    Flowable<UserBean> getUser(String token);

    //修改头像
    Flowable<CommonBean> modifyHead(RequestBody token, MultipartBody.Part headPic);

    //修改密码
    Flowable<CommonBean> modifyPassword(String password, String telephone, String code);


    //添加用户报警信息
    Flowable<CommonBean> addMessage(String token, String title, String content);

    //用户报警信息列表
    Flowable<MessageListBean> messageList(String token);

    //用户信息未读数
    Flowable<CommonBean> messageCount(String token);

    //阅读消息
    Flowable<CommonBean> readMessage(String token, String messageId);


}
